import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_common/ui/widget/search_textField.dart';
import 'package:flutter_common/ui/widget/textField.dart';
import 'package:flutter_common/util/logger.dart';

class TextFieldDemo extends StatefulWidget {
  const TextFieldDemo({Key? key}) : super(key: key);

  @override
  State<TextFieldDemo> createState() => _TextFieldDemoState();
}

class _TextFieldDemoState extends State<TextFieldDemo> {
  final TextEditingController? controller = TextEditingController();
  @override
  void initState() {
    super.initState();

  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        padding: EdgeInsets.only(top: 100),
        color: Colors.white,
        child: Column(
          children: [
            FxTextFormField(
              enabledBorderColor: Colors.blue,
              controller: controller,
              onChanged: (v) {
                logger.debug(v);
              },
            ),
            SizedBox(height: 10,),
            FxSearchTextField()
          ],
        ),
      ),
    );
  }
}
